﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PerfilCliente.aspx.cs" Inherits="SFsoftSite.Cliente.PerfilCliente" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <asp:WebPartManager ID="WebPartManager1" runat="server" Personalization-Enabled="true">
    </asp:WebPartManager>
    <h1 style="padding:30px">
        Perfil do Cliente
    </h1>
    <br />
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <table align="center">
                <tr>
                    <td>
                        Alterar visão: <asp:DropDownList ID="cbWebParts"  AutoPostBack="true"  runat="server" OnSelectedIndexChanged="cbWebParts_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <br />
            <table align="center">
                <tr>
                    <td colspan="2" style="width: 100%; height: 100%">
                        <asp:WebPartZone ID="Perfil" CloseVerb-Text="Fechar" MinimizeVerb-Text="Minimizar" EditVerb-Text="Editar"
                         runat="server" Width="100%" Height="100%" RestoreVerb-Text="Restaurar">
                            <ZoneTemplate>
                                <asp:Panel ID="Panel1" runat="server" Title="Minhas informações">
                                    <table width="100%">
                                    <tr>
                                        <td rowspan="4">
                                            <img id="imgFotoCliente" runat="server" src="" alt="" />
                                        </td>
                                        <td>
                                            Nome: <asp:Label ID="lblNome" runat="server" Text=""></asp:Label>
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            E-Mail: <asp:Label ID="lblEmail" runat="server" Text=""></asp:Label>
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Endereço: <asp:Label ID="lblEndereco" runat="server" Text=""></asp:Label>
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Telefone: <asp:Label ID="lblTelefone" runat="server" Text=""></asp:Label>
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                                </asp:Panel>
                            </ZoneTemplate>
                        </asp:WebPartZone>     
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="width: 100%; height: 100%">
                        <asp:WebPartZone ID="Jogos" runat="server"  Width="100%" Height="100%" CloseVerb-Text="Fechar"
                            MinimizeVerb-Text="Minimizar" EditVerb-Text="Editar" RestoreVerb-Text="Restaurar">
                            <ZoneTemplate>
                                <asp:Panel ID="Panel2" runat="server" Title="Meus jogos adquiridos">
                                    <asp:Repeater runat="server" ID="rptJogos">
                                        <HeaderTemplate>
                                            <table align="center">
                                                <tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>

                                                <td align="center">
                                                    <img src='../Resources/Images/Upload/Games/<%# Eval("Foto") %>' alt="" />
                                                    <br />
                                                    <asp:Label ID="Label1" Text='<%# Eval("Nome") %>' runat="server" />
                                                    <br />
                                                </td>

                                               <%# (Container.ItemIndex % 2 == 0 && Container.ItemIndex != 0 ? "</tr><tr>" : string.Empty) %>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:Repeater>

                                </asp:Panel>   
                            </ZoneTemplate>
                        </asp:WebPartZone>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%; height: 50%">
                        <asp:EditorZone ID="EditorZone1" runat="server"  Width="100%" Height="100%">
                            <ZoneTemplate>
                                <asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server"></asp:AppearanceEditorPart>
                            </ZoneTemplate>
                        </asp:EditorZone>    
                    </td>
                    <td style="width: 50%; height: 50%">
                        <asp:CatalogZone ID="CatalogZone1" runat="server"  Width="100%" Height="100%">
                            <ZoneTemplate>
                                <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" />
                            </ZoneTemplate>
                        </asp:CatalogZone>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <br />
</asp:Content>
